package cn.edu.hrbcu.everywhereapp.activity;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.amap.api.maps2d.AMap;
import com.amap.api.maps2d.MapView;

import cn.edu.hrbcu.everywhereapp.R;
import cn.edu.hrbcu.everywhereapp.utils.Scheduler;
import cn.edu.hrbcu.everywhereapp.utils.StudentScheduler;

public class StudentActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState)  {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_student);

        //绘制地图
        MapView mapView = (MapView) findViewById(R.id.mapView003);
        mapView.onCreate(savedInstanceState);// 此方法必须重写
        AMap aMap = mapView.getMap();

        //启动定时器
        StudentScheduler scheduler = new StudentScheduler();
        scheduler.startScheduler("",aMap);
    }
}